package alp.starcode.nudtportal.framework.mybatis.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * notice_file(通知公告文件关联表)
 * </p>
 *
 * @author xwx
 * @since 2023-08-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("notice_file")
@ApiModel(value = "NoticeFile对象", description = "notice_file(通知公告文件关联表)")
public class NoticeFile extends Model<NoticeFile> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "通知文件流水号")
    @TableId("notice_file_id")
    private String noticeFileId;

    @ApiModelProperty(value = "通知流水器")
    @TableField("notice_id")
    private String noticeId;

    @ApiModelProperty(value = "文件路径")
    @TableField("file_path")
    private String filePath;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Long createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private Long updateTime;


    @Override
    protected Serializable pkVal() {
        return this.noticeFileId;
    }

}
